//index.js
//获取应用实例
const app = getApp()

Page({

  data: {
    //顶部轮播图
    imgUrls: [
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇.jpg',
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_001.jpg',
      'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_002.jpg'
    ],
    //第二部分数据数组
    contentImgUrls: [{
        id: '001',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_009.jpg'
      }, {
        id: '002',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_012.jpg'
      }, {
        id: '003',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_006.jpg'
      }, {
        id: '004',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_007.jpg'
      }, {
        id: '005',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_017.jpg'
      }, {
        id: '006',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_014.jpg'
      }, {
        id: '007',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_013.jpg'
      }, {
        id: '008',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_015.jpg'
      }, {
        id: '009',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_016.jpg'
      }, {
        id: '010',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_020.jpg'
      }, {
        id: '011',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_010.jpg'
      }, {
        id: '012',
        title: '',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_005.jpg'
      }


    ],

    indicatorDots: true, //显示面板显示点
    autoplay: true, //自动切换
    interval: 3000, //切换时间
    duration: 1000 //动画时长
  },


  //到天气查询页
  toWeatherQuery: function(e) {
    console.log("城市名称" + this.data.cityName2 + "名称" + this.data.userName)
    wx.navigateTo({
      url: '../../weather/weather'
    })
  },
  toyuxiang: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  toHeroMemories: function(e) {
    wx.navigateTo({
      url: '../HeroMemories/HeroMemories'
    })
  },
  to_001: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_002: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_003: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_004: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_005: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },
  to_006: function(e) {
    wx.navigateTo({
      url: '../yuxiang/yuxiang'
    })
  },


})